package org.example.modules.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.modules.user.entry.User;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
//    @Select("select * from user where user_name = #{userName}")
    User selectByUserName(@Param("userName") String userName);

    User selectUser(String userName);

    List<User> selectUserList();

    void updateStatusById(Integer id, Integer status);

    User getUserInfo(String userName);

    void updateAuthority(String userName, Integer authority);

    void resetPassword(Integer id, String sha256);
}